//
//  SignalAssistorFlipsideViewController.m
//  Portable Traffic Signal Assistor
//
//  Created by Hao Xu on 3/31/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import "SignalAssistorFlipsideViewController.h"

@interface SignalAssistorFlipsideViewController ()

@end

@implementation SignalAssistorFlipsideViewController

@synthesize delegate = _delegate;
@synthesize tableViewController=_tableViewController;
@synthesize agencyEntryViewController=_agencyEntryViewController;


- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void) dealloc
{
    [_tableViewController release];
    [_agencyEntryViewController release];
    [super dealloc];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    self.delegate=nil;
    self.tableViewController=nil;
    self.agencyEntryViewController=nil;
    
//    if (!_tableViewController) {
//        _tableViewController=[[SignalAssistorMainTableViewController alloc] init];
//        [self addChildViewController:_tableViewController];
//        [self presentModalViewController:_tableViewController animated:YES];
//    }
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}

#pragma mark - Actions

- (IBAction)done:(id)sender
{
    [self.delegate flipsideViewControllerDidFinish:self];
}

@end
